<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*,javax.naming.*,java.sql.*,javax.sql.*" %>
<%@ page import="com.simple.util.common.*" %>
<%@ include file="../include/head.jspf"%>
<html>
<head>
<title>东方易云后台管理系统</title>
<style>
body { background: #f5f5f5 ;}
</style>

<script type="text/javascript">
function addSelect(){
	document.selectForm.action="receiveChannelAdd";
	document.selectForm.submit();
}
function goPage(pageNo) {
	document.goPageForm.pageNo.value = pageNo;
	document.goPageForm.submit();
}
function editSelect(fiId){
	document.selectForm.action="receiveChannelEdit";
	$("#fiId").val(fiId);
	document.selectForm.submit();
}
function serachList(){
	var msg=sl_checkInteger($("#fiIdSelect")[0],"接收通道ID",0,0);
	if(msg.length>0){
		alert(msg);
		return;
	}
	$('#selectForm').submit();
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="main-content">
  
    <!-- Main Content Section with everything -->
    <!-- Page Head -->
    <div id="page-title"><h3>接收传输管理</h3></div>
    <div class="pgline"></div>
    <div class="notification querytj png_bg">
      <div>
      	<form  action="receiveChannel" id="selectForm" name="selectForm" method="post">
      	<input type="hidden" id="fiId" name="fiId" value="">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="13%" height="35" align="right">&nbsp;&nbsp;接收通道ID：              </td>
            <td width="29%"><input type="text" name="fiIdSelect" id="fiIdSelect" class="input2" value="<c:out value="${fiIdSelect }" />" /></td>
            <td width="15%" align="right">传输方式：              </td>
            <td width="26%">
            <select name="fcCommunTypeSelect" class="select1" >
            	<option value="">-</option>
	            <c:forEach items="${optionCommunTypeMap}" var="one">
	              <option value="<c:out value="${one.key }" />" <c:out value="${fcCommunTypeSelect== one.key?'Selected':''}"></c:out>><c:out value="${one.value }" /></option>
	            </c:forEach>
            </select>
            </td>
            <td width="17%" rowspan="2"><div><a class="button" href="#" onclick="serachList();">查询</a></div></td>
          </tr>
          <tr>
            <td height="35" align="right">&nbsp;&nbsp;报文格式：              </td>
            <td height="35">
            <select name="fcMsgFormateIdSelect" class="select1" >
            	<option value="">-</option>
	            <c:forEach items="${optionMsgFormatMap}" var="one">
	              <option value="<c:out value="${one.key }" />" <c:out value="${fcMsgFormateIdSelect== one.key?'Selected':''}"></c:out>><c:out value="${one.value }" /></option>
	            </c:forEach>
            </select>
            </td>
            <td width="15%" align="right">报文类型：              </td>
            <td width="26%">
			<select name="fcMsgTypeSelect" class="select1" >
				<option value="">-</option>
	            <c:forEach items="${optionMsgTypeMap}" var="one">
	              <option value="<c:out value="${one.key }" />" <c:out value="${fcMsgTypeSelect== one.key?'Selected':''}"></c:out>><c:out value="${one.value }" /></option>
	            </c:forEach>
            </select>
			</td>
          </tr>
        </table>
        </form>
      </div>
    </div>
    
    <div class="clear"></div>
     <div class="bulk-actions align-left"> <a class="button2" href="javascript:void(0)" onclick="addSelect();">新建</a> </div>
    <div class="clear"></div>
    
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>接收通道列表</h3>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab">
          <table>
            <thead>
              <tr>
                <th>接入通道ID</th>
                <th>接入通道描述</th>
                <th>传输方式</th>
                <th>物理地址</th>
                <th>报文格式</th>
                <th>报文类型</th>
                <th>报文编码</th>
                <th>状态</th>
                <th>操作</th>
              </tr>
            </thead>
            <tfoot>
              <tr>
                <td colspan="9">
                 <c:out value="${pageInfo}" escapeXml="false"></c:out>
                  <!-- End .pagination -->
                  <div class="clear"></div></td>
              </tr>
            </tfoot>
            <tbody>
              <c:forEach var="dataxReceiveChannelVO" items="${dataxReceiveChannelVOList}">
              <tr>
                <td><c:out value="${dataxReceiveChannelVO.fiId}"></c:out></td>
                <td><c:out value="${dataxReceiveChannelVO.fcChannelDesc}"></c:out></td>
                <td><c:out value="${optionCommunTypeMap[fn:trim(dataxReceiveChannelVO.fcCommunType)]}"></c:out></td>
                <td><c:out value="${dataxReceiveChannelVO.fcCommunParam}"></c:out></td>
                <td><c:out value="${optionMsgFormatMap[fn:trim(dataxReceiveChannelVO.fcMsgFormateId)]}"></c:out></td>
                <td><c:out value="${optionMsgTypeMap[fn:trim(dataxReceiveChannelVO.fcMsgType)]}"></c:out></td>
                <td><c:out value="${optionMsgCharsetMap[fn:trim(dataxReceiveChannelVO.fcMsgCharset)]}"></c:out></td>
                <td><c:out value="${optionFiFlagMap[fn:trim(dataxReceiveChannelVO.fiFlag)]}"></c:out></td>
                <td><a href="javascript:void(0)" onclick="editSelect('<c:out value="${dataxReceiveChannelVO.fiId}" />');"  title="Edit" ><img src="resource/images/pencil.png" alt="修改" border="0" /></a></td>
              </tr>
             </c:forEach>
            </tbody>
          </table>
        </div>
        <!-- End #tab1 -->
      </div>
      <!-- End .content-box-content -->
    </div>
  </div>
  <!-- End #main-content -->
</div>
<form method="post" action="receiveChannel" id="goPageForm" name="goPageForm">
      <input type="hidden" name="pageNo" value="<c:out value='${pageNo }'/>" />
      <input type="hidden" id="fiIdSelect" name="fiIdSelect" value="<c:out value='${fiIdSelect }' />">
      <input type="hidden" id="fcCommunTypeSelect" name="fcCommunTypeSelect" value="<c:out value='${fcCommunTypeSelect }' />">
      <input type="hidden" id="fcMsgFormateIdSelect" name="fcMsgFormateIdSelect" value="<c:out value='${fcMsgFormateIdSelect }' />">
      <input type="hidden" id="fcMsgTypeSelect" name="fcMsgTypeSelect" value="<c:out value='${fcMsgTypeSelect }' />">
</form>
</body> 
</html>